<%--
  Created by IntelliJ IDEA.
  User: mobom
  Date: 2016/10/11
  Time: 17:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
  String basePathCl = request.getScheme()+"://"+request.getServerName()+path+"/";
%>
<script src="<%=basePath%>weixin/js/jquery.min.js"></script>
<link rel="stylesheet" href="<%=basePath%>weixin/module/webuploader/webuploader.css" />
<script src="<%=basePath%>weixin/module/webuploader/webuploader.min.js"></script>
<script src="<%=basePath%>weixin/js/upload.js"></script>
<style>
  .content{margin-top: 10px}
</style>
<head>
  <title></title>
</head>
<body>

<form action="/api/ver/add" method="post" style="margin-left: 50%;margin-top: 20%;">
  <div class="content">
    版本名称： <input name="name">
  </div>
  <div class="content">
    更新内容： <input name="content">
  </div>
  <div class="content">
    图片地址： <input name="uplaod_path" id="images">
  </div>
  <div class="content">
    型号：<select name="types" style="margin-left: 40px;">
    <option name="ios">苹果端</option>
    <option name="android">安卓端</option>
  </select>
  </div>
  <div id="frontpathPick">上传图片</div>
  <div class="content" >
    版本号： <input name="versions" style="margin-left: 15px;">
  </div>
  <input type="submit" value="提交" style="margin-top: 25px;margin-left: 50px;">
</form>

<script>
  $(function(){
    upLoadSet([
      {
        fileListId : "aaa",
        filePickerId : "frontpathPick",
        upLoadPath : "<%=basePath%>/upload.do",
        name : "file",
        succeed  : function(file,img){
          $('#images').val(img.data);
        }
      }
    ]);
  })
</script>
</body>
</html>
